#ifndef  __PHY_FRAME_H__
#define  __PHY_FRAME_H__

// ------------------------------------------------------------------------------------------------
//                                          Defines
// ------------------------------------------------------------------------------------------------

#define  PHY_FRAME_MAX_SIZE                     (60)
#define  PHY_FRAME_RX_METRICS_SIZE              (2)

#define  GET_TX_PHY_FRAME_ADDR(frame)           ((INT8U*)(&frame)) 
#define  GET_TX_PHY_FRAME_LTH(frame)            ((*(INT8U*)(&frame)+1))

#define  GET_TX_PHY_FRAME_ADDR_P(pframe)           ((INT8U*)(pframe)) 
#define  GET_TX_PHY_FRAME_LTH_P(pframe)            ((*(INT8U*)(pframe)+1))
// ------------------------------------------------------------------------------------------------
//                                          Typdefs
// ------------------------------------------------------------------------------------------------


typedef struct
{
  INT8U FrameLength;
  INT8U PhyFrame[PHY_FRAME_MAX_SIZE];
} PHY_FRAME;

typedef struct 
{
  INT8U FrameLength;
  INT8U PhyFrame[PHY_FRAME_MAX_SIZE];   
  INT8U rxMetrics[PHY_FRAME_RX_METRICS_SIZE];
}PHY_RX_FRAME;



#endif
